/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Adapter;

/**
 *
 * @author Aleja */
public class AdapterDesviacion extends OperacionesEstadisticas{
    private DesviacionEstandar de;

    public AdapterDesviacion(){
    de= new DesviacionEstandar();

    }


    @Override
    public void setData(int[] datos) {
        float[] f= new float[datos.length];
        for (int i = 0; i < datos.length; i++) {
           f[i]=(float)datos[i];
        }
        de.setData(f);
    }

    @Override
    public double calcularOperacion() {
       double r= de.calcularDesviacion();
       return r;
    }

    @Override
    public String getName() {
        throw new UnsupportedOperationException("Not supported yet.");
    }


}
